<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="huoyun" uri="/huoyun"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>发布货源信息</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">

		<link rel="stylesheet" type="text/css"
			href="${pageContext.request.contextPath}/theme/css/main.css">
		<link rel="stylesheet" type="text/css"
			href="${pageContext.request.contextPath}/theme/css/style_userCenter.css">
	</head>
	<body>
		<div>
			<jsp:include page="../userAdmin/nav.jsp">
				<jsp:param value="nav_main" name="nav" />
			</jsp:include>
		</div>
		<div class="realCer">
			<!--主体部分-->
			<div class="realMain clearfix mt10">
				<!--左侧菜单-->
				<div class="realLeft" id="meunLeft">
					<jsp:include page="../userAdmin/leftMenu.jsp">
						<jsp:param value="con_nav_main" name="con_nav" />
						<jsp:param value="cargoManagement" name="selectMenu"/>
					</jsp:include>
				</div>
				<!--中间-->
				<div class="realRight ml10">
					<div class="box">
				<div class="tit">货物信息详情</div>
				<div class="con">
				<table class="detailTable">
					<tr>
						<td align="right" width="90">标题：</td>
						<td>【<huoyun:customSelect mode="cargosType" value="${cargo.type }" type="view"/>】<s:property value="cargo.title"/></td>
					</tr>
					<tr>
						<td align="right">包装：</td>
						<td><s:if test="cargo.packageType == null || cargo.packageType == ''">无</s:if>
						<s:else><huoyun:customSelect mode="cargoPackageType" value="${cargo.packageType }" type="view"/>
						(<s:property value="cargo.length"/>*<s:property value="cargo.width"/>*<s:property value="cargo.height"/>米)</s:else></td>
					</tr>
					<tr>
						<td align="right">货物数量：</td>
						<td>
							<s:property value="cargo.amount"/><huoyun:customSelect mode="measureType" value="${cargo.measure }" type="view"/>
						</td>
					</tr>
					<tr>
						<td align="right">总运费：</td>
						<td><s:if test="cargo.freight == 0">无出价</s:if><s:else><s:property value="cargo.freight"/>元</s:else></td>
					</tr>
					<tr>
						<td align="right">车型要求：</td>
						<td><s:if test="cargo.carRequired == null || cargo.carRequired == ''">无要求</s:if><s:else><huoyun:customSelect mode="carRequiredType" value="${cargo.carRequired }" type="view"/></s:else></td>
					</tr>
					<tr>
						<td align="right">应标截止日期：</td>
						<td><huoyun:dateFormat date='${cargo.bidEndTime }' dateFormat='yyyy-MM-dd HH:mm'/></td>	
					</tr>
					<tr>
						<td align="right">发货日期：</td>
						<td><huoyun:dateFormat date='${cargo.loadStartTime }' dateFormat='yyyy-MM-dd HH:mm'/>-<huoyun:dateFormat date='${cargo.loadEndTime }' dateFormat='yyyy-MM-dd HH:mm'/></td>
					</tr>
					<tr>
						<td align="right">收货日期：</td>
						<td><huoyun:dateFormat date='${cargo.unloadStartTime }' dateFormat='yyyy-MM-dd HH:mm'/>-<huoyun:dateFormat date='${cargo.unloadEndTime }' dateFormat='yyyy-MM-dd HH:mm'/></td>
					</tr>
					<tr>
						<td align="right">补充说明：</td>
						<td><s:property value="cargo.otherInfo"/></td>
					</tr>
					<tr>
						<td align="right">发货人姓名：</td>
						<td><s:property value="cargo.sender"/>(<s:property value="cargo.senderPhone"/>)</td>
					</tr>
					<tr>
						<td align="right">收货人姓名：</td>
						<td><s:property value="cargo.receiver"/>(<s:property value="cargo.receiverPhone"/>)</td>
					</tr>
					<tr>
						<td align="right">路线：</td>
						<td><huoyun:regionSelect type="view" provinceValue="${cargo.startProvince }" cityValue="${cargo.startCity}" townValue="${cargo.startTown}"/> --
							<huoyun:regionSelect type="view" provinceValue="${cargo.destinationProvince}" cityValue="${cargo.destinationCity}" townValue="${cargo.destinationTown}"/></td>
					</tr>
					<s:if test="cargo.loadStartTime != null">
						<tr>
							<td align="right">装货时间：</td>
							<td><huoyun:dateFormat date='${cargo.loadStartTime }' dateFormat='yyyy-MM-dd HH:mm'/> -- <huoyun:dateFormat date='${cargo.loadEndTime }' dateFormat='yyyy-MM-dd HH:mm'/></td>
						</tr>
					</s:if>
					<s:if test="cargo.unloadStartTime != null">
						<tr>
							<td align="right">卸货时间：</td>
							<td><huoyun:dateFormat date='${cargo.unloadStartTime }' dateFormat='yyyy-MM-dd HH:mm'/> -- <huoyun:dateFormat date='${cargo.unloadEndTime }' dateFormat='yyyy-MM-dd HH:mm'/></td>
						</tr>
					</s:if>
					
				</table>
				</div>
			</div>
				</div>
				<!--中间-->
			</div>
		</div>

		<div>
			<jsp:include page="/footer.jsp"></jsp:include>
		</div>
	</body>
</html>
